package com.dongdongsongcan.app.adapter;

import android.content.Context;
import android.view.View;
import android.widget.TextView;

import com.dongdongsongcan.app.R;
import com.dongdongsongcan.app.control.bean.AreaData;
import com.su.dolphin.adapter.DpBaseAdapter;

/**
 * Created by sfshine@qq.com on 2015/12/29 0029.
 */
public class AreaAdapter extends DpBaseAdapter<AreaData.Area> {
    TextView mAreaitem_name;

    public AreaAdapter(Context context) {
        super(context);
    }

    @Override
    public int onGetItemLayout() {
        return R.layout.layout_area_item;
    }

    @Override
    public void onGetView(View convertView, int position) {
        mAreaitem_name =
                findViewById(convertView, R.id.areaitem_name);
        mAreaitem_name.setText(mDataList.get(position).area_name);

    }
}
